課程概述 |
內容:
Introduction--
Lexical analysis (Scanner):
regular expressions, finite state machine, LEX
Syntax analysis (Parser):
recursive descent parsing, LL(1), operator precedence parsing,
SLR, LR(1), LALR, YACC
Syntax-directed translation
Symbol tables, type checking
Run time environments
Intermediate code generation
Semantic processing (code generation):
declarations, expressions, advanced data structure, control flow, procedure/function
Building a compiler
Advanced topics (if time allowed):
error handling, optimization, ...
|